const mongoose = require("mongoose");

mongoose.connect("mongodb://localhost:27017/instant");
const db = mongoose.connection;

db.once("open",function(){
    console.log("数据库连接成功");
});

module.exports = {
    User : require("../entity/User").loadSchema()
};